package br.com.rhinovet.logica.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.rhinovet.dao.unitario.contract.ConsultaDaoContract;
import br.com.rhinovet.entidade.Consulta;
import br.com.rhinovet.logica.contract.ConsultaLogicaContract;

@Service("consultaLogica")
public class ConsultaLogica extends DefaultLogica<Consulta> implements ConsultaLogicaContract {
	
	private static final long serialVersionUID = 1L;

	@Autowired
	private ConsultaDaoContract consultaDao;

	@Override
	public List<Consulta> buscarConsultaPorCampos(String nomeProprietario, String nomeAnimal) throws Exception {
		return consultaDao.buscarConsultaPorCampos(nomeProprietario, nomeAnimal);
	}
	
	@Override
	public List<Consulta> buscarConsultas(boolean somenteAtiva) throws Exception {
		return consultaDao.buscarConsultas(somenteAtiva);
	}
}
